<script setup>
import { Delete, Edit } from '@element-plus/icons-vue'
import { ref } from 'vue'
// 假数据
const articleList = ref([
  {
    id: 5961,
    title: '新的文章啊',
    pub_date: '2022-07-10 14:53:52.604',
    state: '已发布',
    cate_name: '体育'
  },
  {
    id: 5962,
    title: '新的文章啊',
    pub_date: '2022-07-10 14:54:30.904',
    state: null,
    cate_name: '体育'
  }
])
</script>

<template>
  <page-container title="文章管理">
    <template #extra>
      <el-button type="primary">发布文章</el-button>
    </template>
    <el-form inline>
      <el-form-item label="文章分类：">
        <el-select style="width: 300px">
          <el-option label="数学" value=11></el-option>
          <el-option label="语文" value=12></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="发布状态：">
        <el-select  style="width: 300px">
          <el-option label="已发布"></el-option>
          <el-option label="草稿"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button type="primary">搜索</el-button>
        <el-button>重置</el-button>
      </el-form-item>
    </el-form>

    <el-table :data="articleList" styles="width: 100%">
      <el-table-column label="文章标题" width:400></el-table-column>
      <el-table-column label="分类"></el-table-column>
      <el-table-column label="发表时间"></el-table-column>
      <el-table-column label="状态"></el-table-column>
      <el-table-column label="操作"></el-table-column>
    </el-table>
  </page-container>
</template>

<style scoped>

</style>